//
//  CNRouteTool.m
//  BBSModule
//
//  Created by 邓建东 on 2020/5/22.
//  Copyright © 2020 dong. All rights reserved.
//

#import "CNRouteTool.h"
#import <objc/runtime.h>

@implementation CNRouteTool


+ (id)forwardingTargetForSelector:(SEL)aSelector{
    NSLog(@"%@",NSStringFromSelector(aSelector));
    if ([NSStringFromSelector(aSelector) isEqualToString:@"routeUrl:navigationVc:refer:trackingCode:urlParams:vipReferrer:exts:"]) {
        if (NSClassFromString(@"CSDNConst")) {
            return NSClassFromString(@"CSDNConst");
        }else{
            return NSClassFromString(@"CNRouteError");
        }
    }
    return [super forwardingTargetForSelector:aSelector];
}
@end

@interface CNRouteError : NSObject


@end

@implementation CNRouteError

+ (BOOL)routeUrl:(NSString *)url navigationVc:(UINavigationController *)nav refer:(NSString *)refer trackingCode:(NSString *)trackingCode urlParams:(NSDictionary *)urlParams vipReferrer:(NSString *)vipReferrer exts:(NSDictionary *)exts{
    return NO;
}


@end
